for i in `seq 1 $(ls -al *.java | wc -l)`
do
    javac D${i}.java
    java D${i}
done
rm -rf *.class